package com.accp.hotevent.dao;

import com.accp.hotevent.entity.Event;
import com.accp.hotevent.req.EventListRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EventDao {

    List<Event> list(EventListRequest request);

    Event getOne(Integer id);

    void add(Event event);

    void updateSearchIndex(Event event);

    void updateApprovalStatus(Event event);
}
